var miniConsole = (function(){
    var cache = [];
    var handler = function(ev){
        if(ev.keyCode === 113){
            var script = document.createElement('script')
            script.onload=function(){
                for(var i=0,fn;fn=cache[i++];){
                    fn()
                }
            };
            console.log('bbbb');
            script.src = 'minniConsole.js';
            console.log(document.getElementsByName('head'));
            document.getElementsByName('head')[0].appendChild(script);
            document.body.removeEventListener('keyDown',handler)
        }
    }
    document.body.addEventListener('keydown',handler,false)
    return {
        log : function(){
            var args = arguments
            cache.push(function(){
                return miniConsole.log.apply(miniConsole,args)
            })
        }
    }
})()
miniConsole.log(11)